package com.coderman.infosys.auth.domain.enums.errors;

import com.coderman.infosys.plat.auth.common.error.IError;

/**
 * Description:用户组异常
 * date: 2022/1/8
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
public enum UserGroupErrorEnum implements IError {
    USER_COUNT_OVER_ERROR("E50000001","用户组用户超过限制"),
    //USER_GROUP_OVER_ERROR("E40000002","该用户[{0}]已经在5个用户组中,不可添加"),
    USER_GROUP_DISABLE_ERROR("E50000002","用户组禁用失败"),
    USER_GROUP_ENABLE_ERROR("E50000003","用户组启用失败"),

    ;
    private  String errorCode;

    private String errorMsg;

    UserGroupErrorEnum(String errorCode,String errorMsg){
        this.errorCode = errorCode;
        this.errorMsg = errorMsg;
    }
    @Override
    public String getErrorCode() {
        return this.errorCode;
    }

    @Override
    public String getErrorMsg() {
        return this.errorMsg;
    }
}
